package com.pactera.asmp.server.entity;


import com.pactera.asmp.server.common.utils.FastJsonUtil;

import java.io.Serializable;

/**
 * @ProjectName: asmpserver
 * @Package: com.pactera.asmp.server.entity
 * @ClassName: DeviceInfoSearchDTO
 * @Author: lvzhiqiang
 * @Description: DeviceInfoSearchDTO
 * @Date: 2020/06/24 15:34
 * @Version: 1.0
 */
public class DeviceInfoSearchDTO implements Serializable {

    private Integer id;
    /**
     * 页码
     */
    private Integer page;
    /**
     * 页数据限制
     */
    private Integer limit;
    /**
     * 设备唯一标识码
     * 防止有些设备所有的deviceid都是一样的导致无法区分
     */
    private String duid;
    /**
     * 设备序列号
     */
    private String sn;
    /**
     * 设备名
     */
    private String name;
    /**
     * 设备型号
     */
    private String model;

    /**
     * 品牌
     */
    private String brand;
    /**
     * 平台\n0-android\n1-iOS\n2-IOT
     */
    private int platform;
    /**
     * cpu类型
     */
    private String cpuAbi;
    /**
     * SDK 版本
     */
    private int sdkVersion;
    /**
     * 设备状态\n0-空闲\n1-占用\n2-断线
     */
    private Integer status;
    /**
     * 屏幕高
     */
    private int height;
    /**
     * 屏幕宽
     */
    private int width;
    /**
     * 设备注册时间
     */
    private String registerTime;
    /**
     * 设备断开时间
     */
    private String disconnectTime;
    /**
     * 设备示意图片索引
     */
    private String iconIndex;
    /**
     * 控制这台设备的上位机ID
     */
    private Integer masterComputerId;
    /**
     * 最后使用这台设备的用户id
     */
    private Integer userId;

    /**
     * 使用上位机配置指定设备的主人
     */
    private Integer masterUid;
    /**
     * 当前谁使用该设备，其用户名
     */
    private String userName;

    private Integer isAuxiliary;

    private Integer type;

    public Integer getIsAuxiliary() {
        return isAuxiliary;
    }

    public void setIsAuxiliary(Integer isAuxiliary) {
        this.isAuxiliary = isAuxiliary;
    }

    public Integer getMasterUid() {
        return masterUid;
    }

    public void setMasterUid(Integer masterUid) {
        this.masterUid = masterUid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getDuid() {
        return duid;
    }

    public void setDuid(String duid) {
        this.duid = duid;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPlatform() {
        return platform;
    }

    public void setPlatform(int platform) {
        this.platform = platform;
    }

    public String getCpuAbi() {
        return cpuAbi;
    }

    public void setCpuAbi(String cpuAbi) {
        this.cpuAbi = cpuAbi;
    }

    public int getSdkVersion() {
        return sdkVersion;
    }

    public void setSdkVersion(int sdkVersion) {
        this.sdkVersion = sdkVersion;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getDisconnectTime() {
        return disconnectTime;
    }

    public void setDisconnectTime(String disconnectTime) {
        this.disconnectTime = disconnectTime;
    }

    public String getIconIndex() {
        return iconIndex;
    }

    public void setIconIndex(String iconIndex) {
        this.iconIndex = iconIndex;
    }

    public Integer getMasterComputerId() {
        return masterComputerId;
    }

    public void setMasterComputerId(Integer masterComputerId) {
        this.masterComputerId = masterComputerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return FastJsonUtil.BeanToJson(this);
    }
}
